Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/peLuis123/Stripe_Back/llms.txt

Use this file to discover all available pages before exploring further.

Endpoint

GET /api/customers Retrieves a paginated list of customers from Stripe. By default, returns up to 10 customers.

Request

This endpoint does not require any parameters.

Response

status
boolean
Indicates if the request was successful
message
string
Response message describing the result
data
object
Raw Stripe response object containing the paginated list of customers. This includes:

Examples

curl -X GET https://your-domain.com/api/customers \
  -H "Content-Type: application/json"

Response Examples

Success (200)

{
  "status": true,
  "message": "Clientes listados correctamente",
  "data": {
    "object": "list",
    "data": [
      {
        "id": "cus_1234567890abcdef",
        "email": "customer1@example.com",
        "name": "John Doe",
        "phone": "+1234567890",
        "created": 1234567890
      },
      {
        "id": "cus_0987654321fedcba",
        "email": "customer2@example.com",
        "name": "Jane Smith",
        "phone": "+0987654321",
        "created": 1234567891
      }
    ],
    "has_more": false,
    "url": "/v1/customers"
  }
}

Error (500)

{
  "status": false,
  "message": "Error interno del servidor",
  "code": null
}